package com.example.demo.service.impl;

import com.example.demo.entity.Login;
import com.example.demo.mapper.LoginMapper;
import com.example.demo.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public void insertLogin(String id) {
        loginMapper.insertLogin(id);
    }

    @Override
    public List<Login> selectLInfo(String id) {
        return loginMapper.selectLInfo(id);
    }

    @Override
    public void deleteLInfo(String id) {
        loginMapper.deleteLInfo(id);
    }

    @Override
    public List<Login> selectLiBD(String id, String date) {
        return loginMapper.selectLiBD(id,date);
    }
}
